package com.qdxwx.data.mapper.manager;

import com.qdxwx.models.manager.ManagerRole;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户与角色关联表 数据层
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface ManagerRoleMapper {
    List<ManagerRole> selectManagerRolesByManagerId(int managerId);

    int deleteManagerRoleByManagerId(int managerId);

    int countManagerRoleByRoleId(Integer roleId);

    int batchManagerRole(List<ManagerRole> managerRoleList);

    int deleteManagerRoleInfo(ManagerRole managerRole);

    int deleteManagerRoleInfos(@Param("roleId") Integer roleId, @Param("managerIds") Integer[] managerIds);
}
